<%--
customerLoss.jsp
  @author yulezhisi
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>customerLoss</title>

    <link rel="shortcut icon" href="<c:url value="/images/favicon.ico"/>" type="image/x-icon"/>
    <script src="<c:url value="/js/jquery-1.9.1.min.js"/>"></script>

    <script src="<c:url value="/layui/layui.js"/>"></script>
    <link rel="stylesheet" type="text/css" href="<c:url value="/layui/css/layui.css"/>">

    <script src="<c:url value="/js/my/commons.js"/>"></script>
    <style>
        .container {
            width: 1200px;
            margin: 100px auto;
        }
    </style>
</head>
<body>
<div style="margin-left: 280px;margin-top: 80px">
<form class="layui-form layui-form-pane" action="/updateCon.do" method="post">

    <div class="layui-form-item">
        <%--    编号    --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户编号：</label>
            <div class="layui-input-inline">
                <input id="id" name="id" lay-verify="id" type="text" autocomplete="off" class="layui-input" value="${requestScope.list.id}" readonly="readonly">
            </div>
        </div>
        <%--    客户名称    --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户名称：</label>
            <div class="layui-input-inline">
                <input id="name" name="name" lay-verify="source" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.name}">
            </div>
        </div>
        <%--     客户类别   --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户类别：</label>
            <div class="layui-input-inline">
                <input id="type" name="type" lay-verify="customerName" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.type}">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <%--     客户等级   --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户等级：</label>
            <div class="layui-input-block">
                <select  lay-filter="aihao" id="level" name="level">

                       <c:forEach items="${khDj}" var="kh">
                           <option value="${kh.id}" <c:if test="${requestScope.list.level==kh.id}">selected="selected"</c:if>>${kh.name}</option>
                       </c:forEach>

                </select>
            </div>
        </div>
            <%--<div class="layui-input-inline">--%>
                <%--<input id="level" name="level " lay-verify="success " type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.level}">--%>
            <%--</div>--%>
        <%--    客户状态    --%>
        <div class="layui-inline" style="margin-left: 10px">
            <label class="layui-form-label">客户状态：</label>
            <div class="layui-input-inline">
                <select  lay-filter="aihao" id="status" name="status">
                    <c:forEach items="${khZt}" var="kh">
                        <option value="${kh.id}" <c:if test="${requestScope.list.status==kh.id}">selected="selected"</c:if>>${kh.name}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <%--    客户信用度    --%>
        <div class="layui-inline" >
            <label class="layui-form-label">客户信用度：</label>
            <div class="layui-input-block">
                <select  lay-filter="aihao" id="credit" name="credit">
                    <c:forEach items="${khXyd}" var="kh">
                        <option value="${kh.id}" <c:if test="${requestScope.list.credit==kh.id}">selected="selected"</c:if>>${kh.name}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
    </div>

    <%--<div class="layui-input-inline">--%>
        <%--<input id="credit" name="credit" lay-verify="linkman" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.credit}">--%>
    <%--</div>--%>

    <div class="layui-form-item">
        <%--    客户所在地区    --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户所在地区：</label>
            <div class="layui-input-inline">
                <input id="area" name="area" lay-verify="linkmantel" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.area}">
            </div>
        </div>
        <%--     公司详细地址   --%>
        <div class="layui-inline">
            <label class="layui-form-label">公司详细地址：</label>
            <div class="layui-input-inline">
                <input id="companyAddress" name="companyAddress" lay-verify="creater" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.companyAddress}">
            </div>
        </div>
        <%--     公司电话   --%>
        <div class="layui-inline">
            <label class="layui-form-label">公司电话：</label>
            <div class="layui-input-inline">
                <input id="companyPhone" name="companyPhone" lay-verify="create_time" type="text"  value="${requestScope.list.companyPhone}" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>



    <div class="layui-form-item">
        <%--     邮政编码   --%>
        <div class="layui-inline">
            <label class="layui-form-label">邮政编码：</label>
            <div class="layui-input-inline">
                <input id="postCode" name="postCode" lay-verify="manager_id" type="text"  value="${requestScope.list.postCode}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <%--     传真地址   --%>
        <div class="layui-inline">
            <label class="layui-form-label">传真地址：</label>
            <div class="layui-input-inline">
                <input id="faxAddress" name="faxAddress" lay-verify="allot_date datetime" type="text"  value="${requestScope.list.faxAddress}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <%--    公司网站    --%>
        <div class="layui-inline">
            <label class="layui-form-label">公司网站：</label>
            <div class="layui-input-inline">
                <input id="companyWebsite" name="companyWebsite" lay-verify="id" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.companyWebsite}">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <%--    营业执照注册号    --%>
        <div class="layui-inline">
            <label class="layui-form-label">营业执照注册号：</label>
            <div class="layui-input-inline">
                <input id="licenseNumber" name="licenseNumber" lay-verify="source" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.licenseNumber}">
            </div>
        </div>
        <%--     法人   --%>
        <div class="layui-inline">
            <label class="layui-form-label">法人：</label>
            <div class="layui-input-inline">
                <input id="corporation" name="corporation" lay-verify="customerName" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.corporation}">
            </div>
        </div>
        <%--     年营业额   --%>
        <div class="layui-inline">
            <label class="layui-form-label">年营业额：</label>
            <div class="layui-input-inline">
                <input id="annualSale" name="annualSale " lay-verify="success " type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.annualSale}">
            </div>
        </div>
    </div>



    <div class="layui-form-item">
        <%--    开户银行    --%>
        <div class="layui-inline">
            <label class="layui-form-label">开户银行：</label>
            <div class="layui-input-inline">
                <input id="depositBank" name="depositBank" lay-verify="status" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.depositBank}">
            </div>
        </div>
        <%--    银行账号    --%>
        <div class="layui-inline">
            <label class="layui-form-label">银行账号：</label>
            <div class="layui-input-inline">
                <input id="bankAccount" name="bankAccount" lay-verify="linkman" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.bankAccount}">
            </div>
        </div>
        <%--    地税登记号    --%>
        <div class="layui-inline">
            <label class="layui-form-label">地税登记号：</label>
            <div class="layui-input-inline">
                <input id="landTaxNumber" name="landTaxNumber" lay-verify="linkmantel" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.landTaxNumber}">
            </div>
        </div>
    </div>


    <div class="layui-form-item">
        <%--     国税登记号   --%>
        <div class="layui-inline">
            <label class="layui-form-label">国税登记号：</label>
            <div class="layui-input-inline">
                <input id="nationalTaxNumber" name="nationalTaxNumber" lay-verify="creater" type="text" autocomplete="off" class="layui-input"  value="${requestScope.list.nationalTaxNumber}">
            </div>
        </div>
        <%--     客户来源   --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户来源：</label>
            <div class="layui-input-inline">
                <input id="source" name="source" lay-verify="create_time" type="text"  value="${requestScope.list.source}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <%--     客户描述   --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户描述：</label>
            <div class="layui-input-inline">
                <input id="description" name="description" lay-verify="manager_id" type="text"  value="${requestScope.list.description}" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <%--     客户成熟度   --%>
        <div class="layui-inline">
            <label class="layui-form-label">客户成熟度：</label>
            <div class="layui-input-inline">
                <input id="maturity" name="maturity" lay-verify="allot_date datetime" type="text"  value="${requestScope.list.maturity}" autocomplete="off" class="layui-input">
            </div>
        </div>
            <%--客户经理--%>
            <div class="layui-form-item layui-inline">
                <label class="layui-form-label">客户经理:</label>
                <div class="layui-input-block">
                    <select name="managerId" lay-verify="required" style="width:100px;height: 35px" id="CustomerManager">

                        <c:forEach items="${Rolr}" var="k">
                            <option value="${k.id}" <C:if test="${requestScope.list.managerId==k.id}">selected="selected"</C:if>>${k.real_name}</option>
                        </c:forEach>
                    </select>
                    </select>

                </div>
            </div>


        <%--     相关文档保存地址   --%>
        <div class="layui-inline" style="margin-left: 10px">
            <label class="layui-form-label">相关文档保存地址：</label>
            <div class="layui-input-inline">
                <input id="document" name="document" lay-verify="manager_id" type="text"  value="${requestScope.list.document}" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div style="width: 216px; margin-left: 350px;">
    <input type="submit" class="layui-btn layui-btn-fluid" value="提交">
    </div>
</form>
</div>

</body>
</html>
